package com.wish.wishsystem_management.service.impl;

import com.wish.wishsystem_management.entity.TbBusinessCircle;
import com.wish.wishsystem_management.mapper.TbBusinessCircleMapper;
import com.wish.wishsystem_management.service.ITbBusinessCircleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import dto.systemDto.BusinessCircleDto;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商圈 服务实现类
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
@Service
public class TbBusinessCircleServiceImpl extends ServiceImpl<TbBusinessCircleMapper, TbBusinessCircle> implements ITbBusinessCircleService {


    //    列表
    @Override
    public List<TbBusinessCircle> findAll(BusinessCircleDto businessCircleDto) {
        TbBusinessCircle tbBusinessCircle = new TbBusinessCircle();
        BeanUtils.copyProperties(businessCircleDto, tbBusinessCircle);
        return baseMapper.findAll(tbBusinessCircle);
    }

    @Override
    public List<ITbBusinessCircleService> queryList(String code) {
        return baseMapper.queryList(code);
    }
}
